package com.flame.shapeville.component.task1.shape2D;

import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;

/**
 * Represents a square shape used in Task 1.
 * <p>
 * This class renders a simple square with customizable size.
 *
 * @author Flame Dev Team
 * @version 1.0
 * @since 2025-05-12
 */
public class JfSquare extends JfShape2D {

    /**
     * Constructs a new square with the specified size.
     *
     * @param size the width and height of the square
     */
    public JfSquare(double size) {
        this.size = size;
        shape = new Rectangle(size, size);
        initBaseParams(Color.CYAN);
    }
}
